/* pages/location/index.wxss */
@import "../../styles/index.scss";
/* 定义淡入动画 */
@keyframes fadeIn {
  from {
    opacity: 0.1;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 定义淡出动画 */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0.1;
    transform: scale(0.9);
  }
}

/* 应用淡入动画 */
.fade-in {
  opacity: 0.1;
  animation: fadeIn 1s ease-in forwards;
}

/* 应用淡出动画 */
.fade-out {
  // opacity: 1;
  animation: fadeOut 1s ease-out forwards;
}

page {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100vh;
}

.nav {
  padding: 34rpx 24rpx 0;

  &-box {
    white-space: nowrap;
  }

  &-item {
    display: inline-block;
    position: relative;
    width: 112rpx;
    height: 82rpx;
    box-sizing: border-box;
    padding: 8rpx 0;
    transition: width .5s linear;
    background-clip: content-box;
    font-size: 34rpx;
    text-align: center;
    line-height: 70rpx;
    color: #000;

    .before,
    .after {
      content: "";
      position: absolute;
      width: 100%;
      height: 2rpx;
      background-color: #000;
    }

    .before {
      top: 0;
    }

    .after {
      bottom: 0;
    }

    &.active {
      width: 320rpx;
      background-color: #DB2E4E;
      color: #fff;
    }

    &.ml {
      margin-left: 10rpx;
    }
  }
}
.swiper-container {
  position: relative;
  height: 700rpx;
  .swiper {
    width: 100%;
    height: 700rpx;
  }
  .swiper-item-img {
    display: block;
    width: 100%;
    height: 700rpx;
  }
  //.swiper-item-map {
  //  position: absolute;
  //  left: 0;
  //  top: 0;
  //  right: 0;
  //  height: 700rpx;
  //}
}

.board-btn-wrapper {
  display: flex;
  justify-content: space-between;
  position: absolute;
  left: 20rpx;
  right: 20rpx;
  top: 305rpx;
  z-index: 1000;
  pointer-events: none;
  .board-btn {
    width: 60rpx;
    height: 60rpx;
    opacity: 1;
    z-index: 100;
    pointer-events: visible;
    &.disabled {
      opacity: .5;
    }

    &:first-child {
      left: 20rpx;
    }

    &:last-child {
      right: 20rpx;
    }
  }
}

.title {
  position: relative;
  width: 722rpx;
  margin: 0 auto;
  padding: 12rpx 0;

  &-label {
    font-size: 36rpx;
    color: #000;
  }

  &-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2rpx;
    background-color: #000;
  }
}

.list {
  flex: 1;

  &-item {
    width: 722rpx;
    margin: 0 auto;

    .sub {
      padding: 12rpx 0;
      color: #000;
      @include flex;

      &-label {
        font-size: 36rpx;
      }

      &-value {
        flex: 1;
        font-size: 28rpx;
        text-align: right;
      }
    }

    .cover {
      position: relative;

      &-img {
        width: 100%;
      }

      &-icon {
        width: 72rpx;
        height: 72rpx;
        position: absolute;
        right: 30rpx;
        bottom: 40rpx;
      }

      &-num {
        font-size: 40rpx;
        color: #fff;
        position: absolute;
        right: 30rpx;
        top: 20rpx;
      }
    }
  }
}

.btn {
  @include flex-center;
  padding: 20rpx 0 20rpx;

  &-item {
    @include flex-center;
    width: 648rpx;
    height: 96rpx;
    background-color: #000;
    font-size: 28rpx;
    color: #fff;
  }
}